package com.sinohantech.schedule.job.admin.dao;

import com.sinohantech.schedule.job.admin.core.model.ScheduleJobGroup;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by opensource on 16/9/30.
 */
public interface ScheduleJobGroupDao {

    public List<ScheduleJobGroup> findAll();

    public List<ScheduleJobGroup> findByAddressType(@Param("addressType") int addressType);

    public int save(ScheduleJobGroup scheduleJobGroup);

    public int update(ScheduleJobGroup scheduleJobGroup);

    public int remove(@Param("id") int id);

    public ScheduleJobGroup load(@Param("id") int id);
}
